package com.zbycorp.generatecode.service;

import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.project.Project;
import com.zbycorp.generatecode.entity.TableInfo;
import com.zbycorp.generatecode.entity.Template;
import com.zbycorp.generatecode.service.impl.CodeGenerateServiceImpl;
import org.jetbrains.annotations.NotNull;

import java.util.List;

/**
 * @author YCL
 * @date 2023/3/29
 */
public interface CodeGenerateService {

    static CodeGenerateService getInstance(@NotNull Project project) {
        return ServiceManager.getService(project, CodeGenerateServiceImpl.class);
    }

    void generate(Project project, TableInfo tableInfo, List<Template> templateList);

}
